<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--导入JSTL函数库 --%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
body
{
/* background-color: #7FFFD4; */
background-image:url("img/b2.jpg");
}

</style>
<link rel="stylesheet"	href="${base}/css/style.css" />
<title>学生登录</title>
</head>
<body>
<br>
<br>
<h1 align="center">欢迎使用学生信息管理系统</h1>
	<form id="loginForm">
		<input  type="text" name="stuno"  placeholder="请输入你的学号" value="${fn:split(cookie.userInfo.value,':') [0]}"/>
		<br/><br/>
		<input  type="password"  name="password" placeholder="请输入你的密码"  value="${fn:split(cookie.userInfo.value,':') [1]}"/>
		<br/><br/>
		<input  type="text" name="code" placeholder="请输入验证码"/>
		 <br/><br/>
		<img id="code" src="${base }/code"/>&nbsp;
		<a href="javascript:void(0)"  onclick="changeCode()">看不清,换一张?</a>
		 <br/><br/>
		 <input id="loginBt" type="submit" value="登录"/>
		 <br/><br/>
		<input type="checkbox"  name="rememberMe"  value="1" checked>记住我&emsp;
	<!-- 	<a href="javascript:void(0)"  onclick="addStudent()">没有账号?点此注册</a> -->
		<span id="loginHint" style="color:red">
			<c:if test="${param.info == 2 }">
					请先登录!
			</c:if>
	</span>	
	</form>
	
	<script type="text/javascript">  
		var base = "${base}";
	</script> 
	<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
	<script src="${base}/js/script.js"></script>
</body>
</html>